-
-
Notifications
You must be signed in to change notification settings - Fork 214
feat: Custom-metadata, exists, info methods #1023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Currently waiting for an answer on supabase/storage#541 because I'm unsure about the correct types of the |
Pull Request Test Coverage Report for Build 14534435626Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
@@ -98,31 +108,15 @@ class Fetch { | |||
filename: file.path, | |||
contentType: contentType, | |||
); | |||
final request = http.MultipartRequest(method, Uri.parse(url)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deleted code here is the same as in _handleBinaryFileRequest()
so I added additional _handleFileRequest()
instead to reduce code duplication. These two can now use an actual _handleMultipartRequest()
method, which just accepts a MultipartFile
which is independent of a passed File
or Uint8List
.
This reverts commit 502c611.
What kind of change does this PR introduce?
feature
What is the current behavior?
No support for specifying metadata for files when uploading and missing info and exists methods.
What is the new behavior?
Support specifying metadata when uploading files.
Additional context
close #1021
js pr